<h1>Iniciar sesión</h1>

<?php

$attributes = array('class' => 'user_login');
echo form_open('users/verify_login',$attributes);

$username = array(
			  'id'          => 'reg_username',
			  'name'        => 'username',
			  'value'		=> set_value('username'),
			  'maxlength'   => '50',
			  'tabindex'	=> '1'
);

$password = array(
			  'id'          => 'reg_password',
			  'name'        => 'password',
			  'value'		=> '',
			  'maxlength'   => '50',
			  'type'		=>'password',
			  'tabindex'	=> '2'
);

echo '<div>';
if($this->session->flashdata('error_login'))
	echo '<div class="error"><div></div>'.$this->session->flashdata('error_login').'</div>';

echo form_label('Nombre de usuario','username');
echo form_input($username);

echo form_label('Contraseña','password');
echo form_input($password);

echo form_submit('submit','Entrar','tabindex="3"');
echo '</div>';
echo form_close();

echo anchor('users/register','Registrarse').' | '.anchor('users/retry_paswword','Olvide mi contraseña');

?>
<script type="text/javascript">
	$('#reg_username').focus();
</script>